<? require_once("includes/header.php") ?>
 <div class="clear"></div>
        <div id="content_sec">
            <div class="col">
                <h1 class="heading brown">Centres in TamilNadu and South Kerala </h1>

               

<?
$city_list=qry_data("select distinct city from bkc_centre_list order by city asc");
$result[]='---Select City---';
foreach ($city_list as $key => $value) {
	$result[$value["city"]]=$value["city"];
}

?>
Select City :
<?=createSelect("centre_city", $result,  $selected = $centre["centre_city"],"onchange=loadCentreLoc(this.value)")?>


<span id="centreLoc"> </span>

<div style="border-bottom:1px solid #000;margin-bottom:3px;padding:3px;">

</div>
					
                   
    </div>
    <div class="clear"></div>
</div>

</div>
<script type="text/javascript">
function loadCentreLoc(cityName){

$("#centreLoc").empty();
$.get("handler.php",{action:'centreloc','city':cityName},function(data){$("#centreLoc").html(data);});

}

</script>


<? require_once("includes/footer.php") ?>